import QtQuick 1.0

AnimatedImage {
    id:root
    signal clicked();

    source: {
        if ( myModel.state == 4)
            return "../gfx/login.png"
        if ( (myModel.state == 0) ||(myModel.state == 5))
            return "../gfx/logout.png"

        playing=true;
        return "../gfx/connecting.gif"

    }
    MouseArea {
        anchors.fill: parent
        onClicked: root.clicked()

    }
}
